package bjtuoj;

import java.util.Scanner;

/**
 * ClassName: Homework_2_B
 * Description:
 * date: 2021-10-14 9:58
 *
 * @author liyifan
 */
public class Homework_2_B {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int k = scanner.nextInt();
        while (k-- > 0) {
            int n = scanner.nextInt();
            int first = scanner.nextInt();
            int[] arr = new int[n];
            for (int i = 0;i < n;i++) {
                arr[i] = scanner.nextInt();
            }
            if (first == 0)
                System.out.print("wind\n");
            else
                System.out.print("lolanv\n");
        }
        scanner.close();

    }
}
